package com.example.android.ui.search;


import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;

import androidx.appcompat.widget.Toolbar;

import com.example.android.R;
import com.example.android.ui.base.BaseActivity;


public class SearchActivity extends BaseActivity implements View.OnClickListener {
    private ImageView back;
    private EditText search_edit;
    private Button search_button;
    @Override
    protected void initViews() {
        back = find(R.id.search_back);
        search_button = find(R.id.search_button);
        search_edit = find(R.id.search_edit);

        //点击事件
        back.setOnClickListener(this);
        search_button.setOnClickListener(this);

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_search;
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.search_back:
                finish();
                break;
            case R.id.search_button:
                break;
            default:
                break;
        }
    }
}
